import { createWebHistory, createRouter } from 'vue-router'

export const constantRoutes = [
{
    path: '/',
    component: () => import('@/views/system/deviceUpdate'),
    hidden: true
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes: constantRoutes,
  scrollBehavior(to, from, savedPosition) {
    if (savedPosition) {
      return savedPosition
    }
    return { top: 0 }
  },
})

export default router